﻿using System;
using System.Collections.Generic;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
	public interface IPayInfoService
    {
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        List<pay_info_dto> Get(PayInfoQuery query);
        /// <summary>
        /// 根据ID查询
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        pay_info_dto GetPayById(long Id);
       /// <summary>
       /// 根据ID跟新数据
       /// </summary>
       /// <param name="Id"></param>
       /// <param name="LogistListId">单号/板号Id</param>
       /// <param name="Type">类型1：板。2：单</param>
       /// <returns></returns>
        int Update(long Id,long LogistListId,int Type);
        /// <summary>
        /// 根据板Id获取订单
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        List<pay_info_dto> GetListByPlateId(long Id);
        /// <summary>
        /// 根据单Id获取订单
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        List<pay_info_dto> GetListByBoardId(long Id);
        /// 根据payno获取支付信息
        /// </summary>
        /// <param name="PayNO"></param>
        /// <returns></returns>
        pay_info_dto GetPayByPayNo(string PayNO);
    }
}
